package com.beta;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.concurrent.CountDownLatch;

/**
 * DemoServer 服务开启
 */
public class ApiServerDubboProviderMain {

	@SuppressWarnings("resource")
	public static void main(String[] args) throws Exception {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				"classpath:server/spring-core.xml");
		context.start();
		System.out.println("ApiServer start success . spring  profile active ------ "
				+ System.getProperty("spring.profiles.active"));
		new CountDownLatch(1).await();
	}
}